<?php

namespace app\uapi\middleware;

use app\common\service\OrderService;

class RunTask
{
    public function handle($request, \Closure $next)
    {
//        try{
            OrderService::autoCancelExpireOrder();
            OrderService::autoCompletedExpireOrder();
//        }catch (\Exception $e){
//
//        }

        return $next($request);
    }
}